﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="BulidPaymentManage.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Collection.BulidPaymentManage" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--<div id="tabnav">
        <ul>
            <li class="active"><a href="BulidPaymentManage.aspx">未确认</a></li>
            <li><a href="BulidPaymentManageConfirmed.aspx">已确认</a></li>
        </ul>
    </div>--%>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    <asp:Label ID="lblProjectName" runat="server" Text="结算单名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtDistriPlanName" runat="server"></asp:TextBox>
                </td>
                <%--<td align="right">
                    <asp:Label ID="Label1" runat="server" Text="结算单号："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProjectNo" runat="server"></asp:TextBox>
                </td>--%>
                <td align="right">
                    <asp:Label ID="Label3" runat="server" Text="配送企业名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="lblCompanyName" runat="server"></asp:TextBox>
                </td>
                <td>
                    <hz:HzButton ID="btnSelect" runat="server" Text="查  询" CssClass="searchbtn" Width="70px"
                        OnClick="btnSelect_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProcurementProjectList" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="InvoicePaySerialID" EmptyDataText="暂无符合条件的数据！" OnRowCommand="gvwProcurementProjectList_RowCommand"
        OnRowDataBound="gvwProcurementProjectList_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1)%>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <%--<asp:TemplateField HeaderText="结算单号">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblInvoicePayNo" Text='<%#(DataBinder.Eval(Container,"DataItem.InvoicePayNo")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="结算单名称">
                <ItemTemplate>
                    <a href='InvoiceList.aspx?ID=<%#Eval("InvoicePaySerialID") %>&PName=<%#HttpUtility.UrlEncode(Eval("InvoicePayName").ToString()) %>'>
                        <asp:Label runat="server" ID="lblInvoicePayNames" Text='<%#(DataBinder.Eval(Container,"DataItem.InvoicePayName")) %>'
                            ToolTip="点击进入查看结算单详细信息"></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblCompanyName_PS" Text='<%#(DataBinder.Eval(Container,"DataItem.CompanyName_PS")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="注册号" Visible="false">
                <ItemTemplate>
                    <a href='#'>
                        <asp:Label runat="server" ID="lblCompanyID_PS" Text='<%#(DataBinder.Eval(Container,"DataItem.CompanyID_PS")) %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PayAmount" HeaderText="应付金额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="ActualAmount" HeaderText="实付金额" DataFormatString="{0:F2}" />
            <%--            <asp:TemplateField HeaderText="应付金额">
                <ItemTemplate>
                    <asp:Label ID="lblProcureEndTime" runat="server" Text='<%#(DataBinder.Eval(Container,"DataItem.PayAmount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="实付金额">
                <ItemTemplate>
                    <asp:Label ID="lblActualAmount" runat="server" Text='<%#(DataBinder.Eval(Container,"DataItem.ActualAmount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="InvoicePayTime" HeaderText="结算时间" DataFormatString="{0:d}" />
            <asp:TemplateField HeaderText="结算单状态" Visible="false">
                <ItemTemplate>
                    <%--                    <asp:Label ID="lblProcureEndTime" runat="server" Text='<%#Eval("PayStatus").ToString()=="0"?"已提交未确认":"已确认" %>'></asp:Label>
--%>
                    <asp:Label ID="lblPayStatus" runat="server" Text='<%#Eval("PayStatus")%>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
<%--                    <a href='BulidPaymentAdd.aspx?IID=<%#Eval("InvoicePaySerialID") %>'>
                        <asp:Label runat="server" ID="lblMod" Text="修改" ToolTip="修改结算单信息"></asp:Label></a>--%>
                         <hz:HzLinkButton ID="btnAdd" runat="server" CommandName="Add" 
                        CommandArgument='<%#Eval("InvoicePaySerialID") %>' Text="修改" ></hz:HzLinkButton>
                    <hz:HzLinkButton ID="lbtnDel" runat="server" CommandName="Del" OnClientClick="return  confirm('确认要删除此行信息吗？');"
                        CommandArgument='<%#Eval("InvoicePaySerialID") %>' Text="删除" OperateType="删除"
                        ToolTip="删除所选的结算单"></hz:HzLinkButton>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>
    <div class="listip">
        <ul>
            <li>提示:<span> </span></li>
        </ul>
    </div>
    <div class="listctrl">
    </div>
</asp:Content>
